package com.pacy.pacybaseproject.adapters;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.pacy.pacybaseproject.R;
import com.pacy.pacybaseproject.beans.MenuBean;

/**
 * @author PACY
 * @date 2024/1/3
 * description:
 */
public class IntegralAcAdapter extends BaseQuickAdapter<MenuBean, BaseViewHolder> {
    public IntegralAcAdapter() {
        super(R.layout.integral_ac_item_view);
    }

    @Override
    protected void convert(BaseViewHolder holder, MenuBean s) {
        holder.setText(R.id.title,s.getTitle())
                .setImageResource(R.id.icon,s.getIconPath())
                .setText(R.id.slogen_tv,s.getField1())
                .setText(R.id.type_tv,s.getPrice());
    }
}
